package com.learn.eduuserboot.service;

import com.learn.eduapi.entity.user.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface UserService {
    List<User> getUserList(@Param("find")String find,@Param("page")Integer page,@Param("size")Integer size);
    User selectByPhone(@Param("phone") String phone);
    User selectByName(@Param("name") String name);

    int insertUser(User user);
    int updateUser(User user);
    User selectById(Long id);

}
